$blueColor1: #449cff;
$redColor1: #ff0000;
$greenColor1: #52C41A;
$yellow1: #ff812e;

.primary-text {
  color: $blueColor1;
}

.warning-text {
  color: $yellow1;
}

.success-text {
  color: $greenColor1;
}

.error-text {
  color: $redColor1;
}

.el-table {
  .sort {
    cursor: pointer;

    &.active {
      color: $blueColor1;
    }
  }

  .el-dropdown {
    display: block;
    font-size: inherit;
    color: #909399;
    padding: 0;
    line-height: 1;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.common-drawer {
  .drawer-title {
    position: relative;

    .el-icon-close {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 0;
      cursor: pointer;
    }
  }

  .drawer-content {
    .el-scrollbar {
      height: calc(100vh - 66px);

      &.fix {
        height: calc(100vh - 120px);
      }

      .el-scrollbar__wrap {
        overflow-x: hidden;
        padding: 0 15px 15px;
      }
    }

    .fix-bottom {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 15px 12px;
      background-color: #f5f5f5;
      text-align: right;
    }

    section {
      .header {
        color: #666;
        word-break: break-all;

        h1 {
          margin: 32px 0 16px;
          font-size: 18px;
          padding-left: 8px;
          border-left: 3px solid #00a0e9;
        }
      }
    }

    .drawer-form {
      border: 1px solid #dfe6ec;
      margin-top: 15px;

      .el-form-item--small.el-form-item {
        margin-bottom: 0;
        border-bottom: 1px solid #dfe6ec;

        &:last-child {
          border-bottom: none;
        }
      }

      .el-form-item--small .el-form-item__label {
        border-right: 1px solid #dfe6ec;
        margin-right: 12px;
      }
    }
  }
}

.common-statistic {
  margin-bottom: 15px;
  color: #666;

  li {
    display: inline-block;
    margin-right: 15px;

    &.border-right {
      padding-right: 18px;
      border-right: 1px solid #ccc
    }
  }
}

.common-card-wrapper {
  .el-card {
    margin-bottom: 20px;

    .el-col {
      margin-bottom: 20px;
      font-size: 14px;

      & > span {
        &:first-child {
          color: #606266;
          font-weight: bold;
        }
      }
    }
  }
}

.img-uploader {
  .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    &:hover {
      border-color: #409EFF;
    }

    .upload-icon {
      font-size: 28px;
      color: #8c939d;
      width: 178px;
      height: 178px;
      line-height: 178px;
      text-align: center;
    }

    .upload-img {
      display: block;
      width: 100px;
      height: 100px;
    }
  }
}
